void setup() {}

void loop() {
     int lectura;
     int sonido;
     lectura = analogRead(0); 
     sonido = map(lectura, 400, 1000, 120, 1500);
     tone(9, sonido, 10);
     delay(1); 
}











